def E(t):
     for k in range (2,  int( t**0.5)+1):
         if t[k]%k==0:
             break
         else:
            print("простое" )


w =['zero', 'one', 'two' , 'three', 'four' , 'five', 'six', 'seven', 'eight' , 'nine' ]
a=input().split()
print(a)
if len(a) != 3:
    print("woring input")
else:
    for i in range(3):
        if a not in w:
            print("woring input")
            break
    
        
for i in range(10):
    if (a[0] == w[i]):
        x=i*100
    if (a[1] == w[i]):
        y=i*10
    if (a[2] == w[i]):
        z=i

s = x+y+z
E(s)
print(s)
